#ifndef MD2_TYPES_H
#define MD2_TYPES_H

#include "Vector3.h"

namespace Eternal
{
	namespace Scene
	{	
	
		typedef struct
		{
			char ident[4];
			int i_ver;
			float f_skinwidth;
			float f_skinheight;
			int i_framesize;
			int i_numskins;
			int i_numverts;
			int i_numst;
			int i_numtriangles;
			int i_numglcmds;
			int i_numframes;
			int i_ofskins;
			int i_ofst;
			int i_oftris;
			int i_offrames;
			int i_ofglcmds;
			int i_ofend;
		}md2_header_t;
	
		typedef struct
		{
			short x;
			short y;
		}md2_st_t;
		
		typedef struct
		{
			unsigned char v[3];
			unsigned char normalIndex;
		}md2_vertex_t;
		
		typedef struct
		{
			float Scale[3];
			float Translate[3];
			char name[16];
			md2_vertex_t *Verts;
		}md2_frame_t;
		
		typedef struct
		{
			short vert_indices[3];
			short tex_indices[3];
		}md2_triangle_t;
		

	}
}

#endif
